//存放后端管理api以及通用／上传api
const express = require('express')
const router = express.Router()
const bodyParser = require('body-parser')
const path = require('path')
var http = require("http")
var crypto = require('crypto')
const mysql = require('promise-mysql');


router.post('/api/auth/login',function(req, res){
   var body = req.body;
   console.log(body)
//    if(req.session.user=='dubinbin'){
//     res.send('已请求过');  
//     }else{
//         req.session.user = 'dubinbin';  
//         req.session.age = '19';
//         req.session.uid = '10086';
//         res.send(req.session.user);  
//     }
})


//验证码是否正确
module.exports = router
